package com.imooc.service.center;

import com.imooc.pojo.OrderItems;
import com.imooc.pojo.bo.center.OrderItemsCommentBO;
import com.imooc.utils.PagedGridResult;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 逸尘风清
 * @date 2021/5/11
 * @time 17:26
 * 描述：
 */
public interface CommentsCenterService {
    @Transactional(propagation = Propagation.SUPPORTS)
    List<OrderItems> queryPendingComment(String orderId);

    @Transactional(propagation = Propagation.REQUIRED)
    void saveComments(String orderId, String userId,
                      List<OrderItemsCommentBO> commentList);

    @Transactional(propagation = Propagation.SUPPORTS)
    PagedGridResult queryMyComments(String userId,
                                    Integer page,
                                    Integer pageSize);
}
